package com.swh.qa.client;

import com.swh.base.entity.Result;
import com.swh.qa.client.Impl.LabelClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Author: swh
 * @Description:
 * @Date: 2021/1/19 15:06
 * @Version: 1.0
 */


@FeignClient(value = "ktc-base",fallback = LabelClientImpl.class)            //调用微服的名称
public interface LabelClient {
    @RequestMapping(value = "/label/{id}", method = RequestMethod.GET)
    Result findById(@PathVariable("id") String id);

}
